import colors from '@/assets/skin/base.module.less';
//echart 曲线图得10个颜色
const legendColors = [
  colors.ryblue5,
  colors.rygreen6,
  colors.gold5,
  colors.red4,
  colors.blue4,
  colors.purple5,
  colors.orange6,
  colors.cyan7,
  colors.magenta4,
  colors.gblue5,
];

const colors10 = [
  colors.ryblue7, //0
  colors.rygreen7, //1
  colors.gblue7,
  colors.gold7, //3
  colors.red7,
  colors.blue7, //5
  colors.purple5,
  colors.orange7, //7
  colors.cyan7,
  colors.magenta7,
];
const colors20 = [
  colors.ryblue7,
  colors.ryblue4,
  colors.rygreen7,
  colors.rygreen5,
  colors.gblue7,
  colors.gblue3,
  colors.gold7,
  colors.gold4,
  colors.red7,
  colors.red4,
  colors.blue7,
  colors.blue4,
  colors.purple5,
  colors.purple4,
  colors.orange7,
  colors.orange4,
  colors.cyan7,
  colors.cyan5,
  colors.magenta7,
  colors.magenta4,
];
const legendRect = {
  icon: 'rect',
  x: 'center',
  bottom: '0%',
  itemHeight: 4,
  itemWidth: 8,
};
const chartOpt = {
  grid: {
    left: '50',
    right: '50',
    top: '30',
    bottom: '50',
    containLabel: false,
  },
  titleOpt: {
    left: '0%',
    top: -4,
    textStyle: {
      fontSize: '14px',
      color: colors.gray13,
    },
  },
};
export { legendColors, colors10, colors20, legendRect, chartOpt };
